package io.github.talelin.latticy.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@Data
public class BannerItemDTO {

    @Length(min = 1, max = 255)
    private String name;

    @Length(min = 1, max = 255)
    private String img;

    @Length(min = 1, max = 255)
    private String keyword;

    @Positive
    @NotNull
    private Integer type;

    @Positive
    @NotNull
    private Long bannerId;
}
